//
//  Config.h
//  myhuibao
//
//  Created by li jun on 13-3-5.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

#import <Foundation/Foundation.h>
enum
{
    MERCHANTALL,
    MERCHANTCARD,
    MERCHANTTICKET
};
enum
{
    HOTHOT,
    HOTCARD,
    HOTRECOMMAND,
    HOTTICKET
};
enum
{
    NEARFOOD,
    NEARKTV,
    NEARTEA,
    NEARCARD,
    NEARTICKET
};
@interface Config : NSObject
@property BOOL isLogin;
//保存登录信息
-(void)saveLogin:(NSDictionary *)member;
-(NSString *)getName;
-(NSString *)getPassword;
-(NSString *)getNickName;
-(NSString *)getLevelName;
-(NSString *)getMobile;
-(NSString *)getPayPassword;
-(NSString*) getImageUrl;
-(NSString *)getCity;
-(NSString *)getLocateCity;
-(NSString *)getLocation;
-(NSString*)getLoginPass;
-(int)getCityId;
-(float) getLatitude;
-(float) getLongitude;
-(int) getFirstRun;
-(bool)getChecked;
-(void)setPhone:(NSString *)phone;
-(void)setName:(NSString *)name;
-(void)setPassword:(NSString *)password;
-(void)setNickName:(NSString *)nickName;
-(void)setPayPassword:(NSString *)payPassword;
-(int)getMemberId;
-(void)setMemberId:(int) memberId;
-(void)setCity:(NSString *) city;
-(void)setLocateCity:(NSString *) city;
-(void)setLocation:(NSString *) location;
-(void)setCityId:(int) cityId;
-(void) setLatitude:(float) latitude;
-(void) setLongitude:(float) longitude;
-(void) setFirstRun:(int) flag;
-(void) setChecked:(bool) flag;

+(Config *) Instance;
+(id)allocWithZone:(NSZone *)zone;
// 正则判断手机号码地址格式
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+ (void)setExtraCellLineHidden: (UITableView *)tableView;
- (NSString *)md5HexDigest:(NSString*)password;
@end
